package com.kindergarten.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author bruce
 * @since 2022-10-28
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Sign extends PagePojo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 考勤人id
     */
    private String kqrId;

    /**
     * 考勤人名字
     */
    @TableField(exist = false)
    private String userName;

    /**
     * 班级名字
     */
    @TableField(exist = false)
    private String className;

    /**
     *  学生姓名
     */
    @TableField(exist = false)
    private String childName;

    /**
     * 状态1正常，2提前，3迟到，4请假，5未知
     */
    private Integer state;

    /**
     * 描述在校情况
     */
    @TableField(value = "`describe`")
    private String describe;

    /**
     * 考勤类型1.签到。2签退
     */
    private Integer type;

    /**
     * 考勤人类型2.老师，3.家长
     */
    private Integer kqrType;

    /**
     * 签到时间
     */
    private String signIn;

    private Integer del=0;


    //扩展属性
    @TableField(exist = false)
    private String startTime;

    //扩展属性
    @TableField(exist = false)
    private String endTime;


}
